<div ms-controller="company_add">
	<div class="location_box">
		<div class="return_title">
			<a class="return_button" ms-on-click="history"><img src="../img/icon_return.png"/></a>
            <a ms-on-click="load('home_cloud.html')">首页</a>
			<span>&gt;</span>
			<span>系统管理</span>
			<span>&gt;</span>
			<a class="" ms-on-click="load('company_list.html')">三方公司列表</a>
			<span>&gt;</span>
			<span ms-if="operate==0">添加公司</span>
			<span ms-if="operate==1">修改公司</span>
		</div>
		<div class="button_box">
			<a ms-if="operate==0" class="button_save" ms-on-click="save">保存</a>
			<a ms-if="operate==1" class="button_save" ms-on-click="update">确认修改</a>
		</div>
	</div>
    <div class="add_item_box">
        <div class="add_item">
            <label>公司名称</label>
            <input type="text" placeholder="请输入公司名称" ms-duplex="name">
        </div>
        <div class="add_item">
            <label>公司类型</label>
            <select ms-duplex="companyType">
                <option></option>
                <option value="0">跑腿公司</option>
                <option value="1">云仓</option>
                <option value="2">快递公司</option>
            </select>
        </div>

    </div>
    <div class="add_item_box">
        <div class="add_item">
            <label>英文缩写</label>
            <input type="text" placeholder="英文缩写为必填项" ms-duplex="abb">
        </div>
        <div class="add_item">
            <label>备注信息</label>
            <textarea ms-duplex="remark" />
        </div>
    </div>
    <div class="tips_add">
        <div ms-if="saveStatus==1">
            <span class="success_tip">保存成功！</span>
        </div>
        <div ms-if="saveStatus==2">
            <span class="fail_tip">保存失败</span>，{{errorMessage}}
        </div>
    </div>
</div>